package com.bsoft.gol.hcs.clinical.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>实体类</p>
 * excel表格数据导入日志记录表
 * <p>Table: data_import_log - </p>
 *
 * @since 2017-06-13 12:11:55
 */
@Entity
@Table(name = "data_import_log")
public class ImportLog implements Serializable {

	private static final long serialVersionUID = -6958000360726134515L;

	private int id;
	private int total;//总条数
	private int success;//成功的条数
	private int fail;//失败的条数
	private String importMsg;//导入结果说明
	private String failJson;//导入失败的数据的JSON
	private String dataType;//导入数据类型,uploadOrg-机构数据、uploadDept-科室数据、uploadTeam-团队数据、uploadMember-团队成员、uploadSign-居民签约记录
	private int download;//是否被下载，0-否、1-是
	private Date createdDate;//创建时间
	private Date downloadDate;//下载时间
	private String version;//版本号[预留字段]
	private String createdBy;//创建人，base_user的ID
	private long takeMs;//花费的时间,毫秒数
	private String fileName;//文件名

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Basic
	@Column(name = "total")
	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	@Basic
	@Column(name = "success")
	public int getSuccess() {
		return success;
	}

	public void setSuccess(int success) {
		this.success = success;
	}

	@Basic
	@Column(name = "fail")
	public int getFail() {
		return fail;
	}

	public void setFail(int fail) {
		this.fail = fail;
	}

	@Basic
	@Column(name = "importMsg")
	public String getImportMsg() {
		return importMsg;
	}

	public void setImportMsg(String importMsg) {
		this.importMsg = importMsg;
	}

	@Basic
	@Column(name = "failJson")
	public String getFailJson() {
		return failJson;
	}

	public void setFailJson(String failJson) {
		this.failJson = failJson;
	}

	@Basic
	@Column(name = "dataType")
	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	@Basic
	@Column(name = "download")
	public int getDownload() {
		return download;
	}

	public void setDownload(int download) {
		this.download = download;
	}

	@Basic
	@Column(name = "createdDate")
	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	@Basic
	@Column(name = "downloadDate")
	public Date getDownloadDate() {
		return downloadDate;
	}

	public void setDownloadDate(Date downloadDate) {
		this.downloadDate = downloadDate;
	}

	@Basic
	@Column(name = "version")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Basic
	@Column(name = "createdBy")
	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	@Basic
	@Column(name = "takeMs")
	public long getTakeMs() {
		return takeMs;
	}

	public void setTakeMs(long takeMs) {
		this.takeMs = takeMs;
	}

	@Basic
	@Column(name = "fileName")
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}